<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>疫苗固有信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		function union(id,key1,key2,key3,key4,key5,key6,key7,key8,key9){
			debugger;
			var obj = {
				id : id,
				vaccNameAll : key1,
				vaccName : key2,
				spec : key3,
				doseType1 : key4,
				largePackage : key5,
				dose : key6,
				containerTypeNam1 : key7,
				customBillNo : key8,
				type : key9
			}
			window.parent.addInfo(obj);
			//window.parent.make();
			var index = parent.layer.getFrameIndex(window.name);
			parent.layer.close(index);
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">疫苗固有信息列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="bsVaccineInfo" action="${ctx}/vaccineinfo/bsVaccineInfo/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>操作</th>
				<th>规格</th>
				<th>剂型</th>
				<th>大包装</th>
				<th>剂量</th>
				<th>容器类型</th>
				<th>批准文号</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bsVaccineInfos">
			<tr>
				<td>
				<button type="button" style="border: none; background-color: #ffffff"
					onclick="union('${bsVaccineInfos.id}',
					'${bsVaccineInfos.vaccNameAll}',
					'${bsVaccineInfos.vaccineName}',
					'${bsVaccineInfos.spec}',
					'${bsVaccineInfos.doseType1}',
					'${bsVaccineInfos.largePackage}',
					'${bsVaccineInfos.dose}',
					'${bsVaccineInfos.containerTypeNam1}',
					'${bsVaccineInfos.customBillNo}',
					'${bsVaccineInfos.type}')">关联</button>
				</td>
				<td>${bsVaccineInfos.spec}</td>
				<td>${bsVaccineInfos.doseType1}</td>
				<td>${bsVaccineInfos.largePackage}</td>
				<td>${bsVaccineInfos.dose}</td>
				<td>${bsVaccineInfos.containerTypeNam1}</td>
				<td>${bsVaccineInfos.customBillNo}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	</form:form>
</body>
</html>